﻿@model BackEnd.Models.CurrencyModel
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Edit Currency</h2>
@using (Html.BeginForm("Edit", "Currency", FormMethod.Post))
{ 
    <table>
        <tr>
            <td>@Html.LabelFor(m => m.Currency)</td>
            <td>@Html.TextBoxFor(m => m.Currency)
                    @Html.ValidationMessage("Currency", new { style="color:#CC0000"})</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m=>m.CountryId)</td>
            <td>
                @Html.DropDownListFor(m => m.CountryId, new SelectList(Model.ListCountry, "Id", "Country"))                                                                      
            </td>
        </tr>       
        <tr>
            <td></td>
            <td>
                @Html.HiddenFor(m=>m.Id)
                <img class="NFButtonLeft NFh" src="/Content/Img/0.png"><input type="submit" class="NFButton NFh" value="Edit" /><img class="NFButtonRight NFh" src="/Content/Img/0.png">
                @Html.ActionLink("Back", "Index", "Currency")
            </td>
        </tr>
    </table>
}
